package learn.emp02.ex34;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int number = scanner.nextInt();
        int Zeros = 32;
        if (number != 0) {
            Zeros = 31 - Integer.bitCount(Integer.highestOneBit(number) - 1);
        }
        System.out.println(Zeros);

        scanner.close();
    }
}